package com.java.base.exercise;

/**
 * @Author RenPu
 * @Date 2021/11/23 12:58
 * @Version 1.0
 * @Description:
 **/
public enum TestUtil {
    
    
    
    LIKE("PCR科室","A"),
    LIKE2("细菌科室","B");
     TestUtil(String name, String type) {
        this.name = name;
        this.type = type;
    }

    private  String name;
    private  String  type;

    public static void main(String[] args) {
        for (TestUtil value : TestUtil.values()) {
            if(value.name.equals("细菌科室")){
                System.out.println(value.type);
            }

        }
    }
}
